<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8" />
	<title>登录</title>
	<link type="text/css" th:href="@{/html/css/bootstrap.min.css}" rel="stylesheet" />
	<script type="text/javascript" th:src="@{/html/js/jquery-1.12.4.js}"></script>
</head>
<body>
	<div class="container" style="margin-top: 100px">
		<form class="form-horizontal col-md-8 col-md-offset-2" th:action="@{/login}" method="post">
            <legend>用户登录</legend>
            <div class="form-group">
                <label class="col-md-2 control-label">用户名:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="username" name="username" required="required" placeholder="请输入用户名" value="zhangsan" />
                </div>
                <div class="col-md-6 help-block">用户不能为空</div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">密码:</label>
                <div class="col-md-4">
                    <input type="password" class="form-control" id="password" name="password" required="required" placeholder="请输入密码" value="a123123" />
                </div>
                <div class="col-md-6 help-block">密码不能为空</div>
            </div>
            
            <div class="form-group">
                <div class="col-md-4 col-md-offset-2">
                    <button type="submit" class="btn">登录</button>
                    <button type="reset" class="btn">取消</button>
                    <a th:href="@{/home}">返回首页</a>
                </div>
                <div class="col-md-6 help-block" th:text="${message}"></div>
            </div>
        </form>
    </div>
</body>
</html>